import request from '@/utils/request'

// 查询大分切列表
export function listSlitting(query) {
  return request({
    url: '/mes/fb/slitting/list',
    method: 'get',
    params: query
  })
}

// 查询大分切详细
export function getSlitting(recordId) {
  return request({
    url: '/mes/fb/slitting/' + recordId,
    method: 'get'
  })
}

// 新增大分切
export function addSlitting(data) {
  return request({
    url: '/mes/fb/slitting',
    method: 'post',
    data: data
  })
}

// 修改大分切
export function updateSlitting(data) {
  return request({
    url: '/mes/fb/slitting',
    method: 'put',
    data: data
  })
}

// 删除大分切
export function delSlitting(recordId) {
  return request({
    url: '/mes/fb/slitting/' + recordId,
    method: 'delete'
  })
}
